/*
 * timer.h
 *
 *  Created on: Oct 9, 2011
 *      Author: mvoorsluys
 */


#ifndef TIMER_H_
#define TIMER_H_

#include <avr/io.h>
#include <avr/interrupt.h>

volatile unsigned long ms;
volatile int sleep_time;
void timer_init();
void sleep(int ms_sleep);
ISR(TIMER0_COMP_vect);

#endif /* TIMER_H_ */
